package com.ruoyi.commodity.mapper;

import com.ruoyi.commodity.domain.Commodity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: Steven 
 * @date: 2023/7/7 0007 10:52
 **/
@Mapper
public interface CommodityMapper {

    int updateCommodity(Commodity commodity);

    Commodity checkCommodityNameUnique(String name);

    int insertCommodity(Commodity commodity);

    List<Commodity> mapperSelectCommodityList(Commodity commodity);

    Commodity selectCommodityById(Long commodityId);

    int deleteCommodityByIds(Long[] commodityIds);

}
